package com.jthinker.bean.vo;

import com.jthinker.bean.enu.SortOrder;

import java.util.ArrayList;
import java.util.List;

public class SearchFilter
{
    public static final int DEFAULT_PAGE = 1;
    public static final int DEFAULT_PAGE_SIZE = 10;

    private int page = DEFAULT_PAGE;
    private int pageSize = DEFAULT_PAGE_SIZE;

    private int start;

    private String sort;
    private SortOrder sortOrder;

    private List<Condition> where = new ArrayList<Condition>();

    public List<Condition> getWhere()
    {
        return where;
    }

    public void setWhere(List<Condition> where)
    {
        this.where = where;
    }

    public int getPage()
    {
        return page;
    }

    public void setPage(int page)
    {
        this.page = page;
    }

    public int getPageSize()
    {
        return pageSize;
    }

    public void setPageSize(int pageSize)
    {
        this.pageSize = pageSize;
    }

    public int getStart()
    {
        return start;
    }

    public void setStart(int start)
    {
        this.start = start;
    }

    public String getSort()
    {
        return sort;
    }

    public void setSort(String sort)
    {
        this.sort = sort;
    }

    public SortOrder getSortOrder()
    {
        return sortOrder;
    }

    public void setSortOrder(SortOrder sortOrder)
    {
        this.sortOrder = sortOrder;
    }
}
